#ifndef AGENTTASKEVENTTRIGGER_H
#define AGENTTASKEVENTTRIGGER_H

#include "Agent/agenttaskbase.h"
class QTimer;

class AgentTaskEventTrigger : public AgentTaskBase
{
    Q_OBJECT
public:
    explicit AgentTaskEventTrigger(QMap <QByteArray,QByteArray> mapIPPortReqPacket,QByteArray packet,
                    QString paramAppIP,quint16 paramAppPort,QObject *parent = 0);
    ~AgentTaskEventTrigger();
signals:

private slots:
    //基类的构造函数在构造的时候，会自动调用这个函数
    void slotInitDerivedClass();
    void slotHold();
    void slotTimerEventHeart();

private:
    void analyzeIncomeDatagram(QByteArray packet);
    //QByteArray baComparingNumber;
    bool isDuringHold;
    QTimer *timerForHold;
    QTimer* timerForEventHeart;

};

#endif // AGENTTASKEVENTTRIGGER_H
